/**
 * 宠物医疗记录类，用于存储宠物的就诊历史
 * @author 用户名
 * @version 1.0
 */
package animal;

import java.time.LocalDate;

public class MedicalRecord {
    private String recordId;  //记录id
    private String petId;     //宠物id
    private String type;      //类型，就诊/疫苗
    private LocalDate date;   //就诊时间
    private String description;  //备注

    /**
     * MedicalRecord 医疗记录构造方法
     * @param recordId 记录唯一标识
     * @param petId 关联宠物ID
     * @param type 就诊类型（疫苗/治疗/体检）
     * @param date 就诊日期
     * @param description 病情描述及治疗方案
     */
    public MedicalRecord(String recordId, String petId, String type, LocalDate date, String description) {
        this.recordId = recordId;
        this.petId = petId;
        this.type = type;
        this.date = date;
        this.description = description;
    }

    // Getters
    public String getRecordId() { return recordId; }
    public String getPetId() { return petId; }
    public String getType() { return type; }
    public LocalDate getDate() { return date; }
    public String getDescription() { return description; }

    @Override
    public String toString() {
        return "医疗id="+recordId + "\t类型=" + type + "\t接种时间=" + date ;
    }
}